package com.example.javaproject.service;

import com.example.javaproject.dto.UserExcelDTO;
import org.springframework.web.multipart.MultipartFile;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface UserExcelService {
    /**
     * 导出用户数据到Excel
     */
    void exportUsers(HttpServletResponse response) throws IOException;

    /**
     * 从Excel导入用户数据
     * @return 导入成功的用户数量
     */
    int importUsers(MultipartFile file) throws IOException;

    /**
     * 获取Excel导入模板
     */
    void downloadTemplate(HttpServletResponse response) throws IOException;
} 